<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="{:U('update')}" method="post">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4">
                                    缩略图 </label>
                                <div class="col-sm-9">
                                    <div class="col-xs-10 col-sm-5">
                                        {:UpImage("thumbnail",100,100,$info['thumbnail'])}
                                    </div>
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">仅支持jpg、gif、png、bmp、jpeg，且小于1MB。</span>
											</span>
                                </div>

                            </div>
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="pro_name"> 产品名称 </label>
                                <div class="col-sm-9">
                                    <input type="hidden" name="id" value="{$info['id']}">
                                    <input type="text" name="pro_name" id="pro_name" class="rcol-xs-10 col-sm-5" value="{$info.pro_name}">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="pro_type"> 产品类型 </label>
                                <div class="col-sm-9">
                                    <select id="pro_type" name="pro_type" class="col-xs-10 col-sm-5 select2">
                                    <foreach item="pro_type" name="pro_type" key="k">
                                        <option value="{$k}" <if condition="$info['pro_type'] eq $k">selected="selected"</if> >{$pro_type}</option>
                                    </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="pro_price"> 产品价格 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="pro_price" id="pro_price" class="rcol-xs-10 col-sm-5" value="{$info.pro_price}">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">不带单位</span>
											</span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="pro_m_price"> 市场价 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="pro_m_price" id="pro_m_price" class="rcol-xs-10 col-sm-5" value="{$info.pro_m_price}">
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">不带单位</span>
											</span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="pro_intro"> 产品介绍 </label>
                                <div class="col-sm-9">
                                    <textarea name="pro_intro" id="pro_intro" style="width:50%;height:300px;visibility:hidden;">{$info['pro_intro']}</textarea>
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $("#tabs").tabs();
        var editor = KindEditor.create('textarea[name="pro_intro"]', {
            uploadJson: '__PUBLIC__/kindeditor/php/upload_json.php',
            fileManagerJson: '__PUBLIC__/kindeditor/php/file_manager_json.php',
            allowFileManager: true,
            afterBlur: function () {
                this.sync();
            }
        });
    });
</script>
</body>
</html>
